import 'package:flutter/material.dart';
import 'package:flutter_app/routes/Routes.dart';

class SettingPage extends StatefulWidget {
  SettingPage({Key key}) : super(key: key);

  @override
  _SettingPageState createState() => _SettingPageState();
}

class _SettingPageState extends State<SettingPage> {
  @override
  Widget build(BuildContext context) {
    return Column(
      children: <Widget>[
        RaisedButton(
          child: Text("跳转登录页面"),
          onPressed: () {
            Navigator.pushNamed(context, '/login');
          },
        ),
        RaisedButton(
          child: Text("跳转注册页面"),
          onPressed: () {
            Navigator.pushNamed(context, '/registerFirst');
          },
        ),
        RaisedButton(
          child: Text("跳转CheckBox页面"),
          onPressed: () {
            Navigator.pushNamed(context, '/checkBox');
          },
        ),
        RaisedButton(
          child: Text("跳转Radio页面"),
          onPressed: () {
            Navigator.pushNamed(context, '/radio');
          },
        ),
        RaisedButton(
          child: Text("checkbox_radio页面"),
          onPressed: () {
            Navigator.pushNamed(context, '/demoPage');
          },
        ),
        Row(
          children: <Widget>[
            SizedBox(width: 30),
            RaisedButton(
              child: Text("Flutter自带时间控件"),
              onPressed: () {
                Navigator.pushNamed(context, '/fluttertime');
              },
            ),
            SizedBox(width: 20),
            RaisedButton(
              child: Text("第三方时间控件"),
              onPressed: () {
                Navigator.pushNamed(context, '/timeother');
              },
            )
          ],
        ),
        RaisedButton(
          child: Text("轮播图"),
          onPressed: () {
            Navigator.pushNamed(context, '/swiper');
          },
        ),
        SizedBox(width: 30),
        RaisedButton(
          child: Text("DiaLog弹窗"),
          onPressed: () {
            Navigator.pushNamed(context, '/dialog');
          },
        ),
        SizedBox(width: 30),
        Row(
          children: [
            RaisedButton(
              child: Text("http请求"),
              onPressed: () {
                Navigator.pushNamed(context, '/http');
              },
            ),
            RaisedButton(
              child: Text("列表按钮"),
              onPressed: () {
                Navigator.pushNamed(context, '/ListViewDemoPage');
              },
            )
          ],
        )
      ],
    );
  }
}
